<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
// 类  对象；
class Person{
    constructor(name){
        this.name = name
    }
    static num = 10
    fn(){
        console.log("fn...")
    }
}
// Person.num = 10;
// console.log(typeof Person);
// let zhangsan = new Person("张三");
// console.log(zhangsan);
// console.log(Person.num);
class Son extends Person{
    constructor(name){
        super(name);
    }
    fn(){
        super.fn();
        console.log("sonfn...")
    }
}

let zhangsan  = new Son("张三");
// console.log(zhangsan);
// zhangsan.fn();
// zhangsan.num
console.log(Son.num);

</script>
</html>